home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1995 April / Internet Tools.iso / x25 / nrs.shar.Z / nrs.shar / dbm1.SH < prev    next >
Encoding:
Text File  |  1990-04-27  |  1.1 KB  |  53 lines

  1. case $CONFIG in
  2.     '') . config.sh ;;
  3. esac
  4. outputfile=dbm1.cf
  5. rm -f $outputfile.$$
  6. echo "Creating $outputfile (with variable substitutions)"
  7. if cat >$outputfile.$$ <<!GROK!THIS!
  8. # RCSid[] = "@(#)$Header: dbm1.SH,v 3.5 88/05/27 06:31:51 pb Rel $"
  9. #
  10. ##################################################
  11. ##################################################
  12. ##############
  13. ############## configure for dbm1 (UCL dbmencode) output
  14. ##############
  15. ##################################################
  16. ##################################################
  17.  
  18. # the directory to search for files in
  19.  
  20. directory $datadir
  21.  
  22. # enable tracing
  23. verbose 1
  24.  
  25. # output format
  26. output dbm1
  27.  
  28. #    context        subnet
  29. #    name
  30. context    TS29        JANET
  31. context    X29        JANET
  32. context    FTP        JANET
  33. context    MAIL        JANET
  34. context    JTMP        JANET
  35. context    DESC        JANET
  36.  
  37. # Want the domain gateway tables
  38. domains
  39. !GROK!THIS!
  40. then if cmp $outputfile $outputfile.$$ > /dev/null 2>& 1
  41.     then
  42.         rm -f $outputfile.$$
  43.         echo "    " $outputfile not affected
  44.     elif mv $outputfile.$$ $outputfile
  45.     then
  46.         echo "    " $outputfile updated
  47.     else
  48.         echo "+++    " $outputfile left in $outputfile.$$
  49.     fi
  50. else
  51.     echo "    " Failed to create $outputfile.$$
  52. fi
  53.